import java.util.Random;

public class Practice03 {
    public static void main(String[] args) {
        String[] names = new String[]{"张三", "李四", "王五"};
        Random random = new Random();
        // 可以使用*（刚才定义的数组名称）.length来读取数组长度
        int randomNumber = random.nextInt(4);
        System.out.println(names[randomNumber]);
    }
}
